﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TeighaHelper.Core
{
    class CadModel
    {
    }



    public class PointLoc
    {
        public PointLoc(double _x, double _y, double _z)
        { X = _x; Y = _y; Z = _z; }
        public double X { get; set; }
        public double Y { get; set; }
        public double Z { get; set; }
    }

    //class CADGeometryLine
    //{
    //    public double stpX { get; set; }
    //    public double stpY { get; set; }
    //    public double stpZ { get; set; }

    //    public double edpX { get; set; }
    //    public double edpY { get; set; }
    //    public double edpZ { get; set; }

    //    public string LayerName { get; set; }
    //}

    public class CADGeometryLine
    {
        public PointLoc stp { get; set; }
        public PointLoc edp { get; set; }

        public string LayerName { get; set; }
    }

    //class CADGeometryArc
    //{
    //    public double normalX { get; set; }
    //    public double normalY { get; set; }
    //    public double normalZ { get; set; }

    //    public double centerX { get; set; }
    //    public double centerY { get; set; }
    //    public double centerZ { get; set; }

    //    public double redius { get; set; }

    //    public double startAngle { get; set; }
    //    public double endAngle { get; set; }

    //    public string LayerName { get; set; }
    //}


    public class CADGeometryArc
    {
        public PointLoc normal { get; set; }

        public PointLoc center { get; set; }

        public double redius { get; set; }

        public double startAngle { get; set; }
        public double endAngle { get; set; }

        public string LayerName { get; set; }
    }

    public class CADGeometryPolyLine
    {
        public List<PointLoc> pointLocs { get; set; }
        public string LayerName { get; set; }
    }




    public class CADTextModel
    {
        public double LocX  { get; set; }
        public double LocY  { get; set; }
        public double LocZ  { get; set; }
        public string Text  { get; set; }
        public double Angel { get; set; }
        public string Layer { get; set; } 
    }

    public class CADDbTextModel : CADTextModel
    {
        
    }

     public class CADMTextModel: CADTextModel
    {
       
    }



}
